<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script type="text/javascript">
	
	class Button{
		constructor(name) {
		    this.text = name;
			this.dom = document.createElement("button");
			this.dom.innerText = this.text;
		}
		toString(){
			return this.dom.outerHTML;
		}
	}
</script>